package com.yellowpage.ca.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UserFunction entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "CA_USER_FUNCTION")
public class UserFunction implements java.io.Serializable {

	// Fields

	private Long userFunctionId;
	private Integer functionId;
	private Integer userId;

	// Constructors

	/** default constructor */
	public UserFunction() {
	}

	/** full constructor */
	public UserFunction(Integer functionId, Integer userId) {
		this.functionId = functionId;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "USER_FUNCTION_ID", unique = true, nullable = false)
	public Long getUserFunctionId() {
		return this.userFunctionId;
	}

	public void setUserFunctionId(Long userFunctionId) {
		this.userFunctionId = userFunctionId;
	}

	@Column(name = "FUNCTION_ID")
	public Integer getFunctionId() {
		return this.functionId;
	}

	public void setFunctionId(Integer functionId) {
		this.functionId = functionId;
	}

	@Column(name = "USER_ID")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}